<nz-card [nzBordered]="false">
  <nz-spin *ngIf="isLoading" class="modal-spin"></nz-spin>
  <form nz-form [formGroup]="validateForm" *ngIf="!isLoading" (ngSubmit)="submitForm()">
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="levelOne">直接上级积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['levelOne']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="levelOne" [nzPlaceHolder]="'直接上级积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('levelOne').dirty && validateForm.get('levelOne').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_levelOne">直接上级现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_levelOne']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_levelOne" [nzPlaceHolder]="'直接上级现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_levelOne').dirty && validateForm.get('red_levelOne').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="levelTwo">间接上级积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['levelTwo']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1"·
                         formControlName="levelTwo" [nzPlaceHolder]="'间接上级积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('levelTwo').dirty && validateForm.get('levelTwo').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_levelTwo">间接上级现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_levelTwo']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_levelTwo" [nzPlaceHolder]="'间接上级现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_levelTwo').dirty && validateForm.get('red_levelTwo').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="levelThird">间间接上级积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['levelThird']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="levelThird" [nzPlaceHolder]="'间间接上级积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('levelThird').dirty && validateForm.get('levelThird').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-control [nzSpan]="14" >
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="role3_4">星创合伙人|门店积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['role3_4']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="role3_4" [nzPlaceHolder]="'星创合伙人|门店积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('role3_4').dirty && validateForm.get('role3_4').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_role3_4">星创合伙人|门店现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_role3_4']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_role3_4" [nzPlaceHolder]="'星创合伙人|门店现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_role3_4').dirty && validateForm.get('red_role3_4').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="role2">星创联合创始人积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['role2']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="role2" [nzPlaceHolder]="'星创联合创始人积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('role2').dirty && validateForm.get('role2').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_role2">星创联合创始人现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_role2']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_role2" [nzPlaceHolder]="'星创联合创始人现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_role2').dirty && validateForm.get('red_role2').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="role1">星创股东积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['role1']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="role1" [nzPlaceHolder]="'星创股东积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('role1').dirty && validateForm.get('role1').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_role1">星创股东现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_role1']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_role1" [nzPlaceHolder]="'星创股东现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_role1').dirty && validateForm.get('red_role1').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>


    <nz-form-item>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="levelSelf">自购积分奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['levelSelf']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="levelSelf" [nzPlaceHolder]="'自购积分奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('levelSelf').dirty && validateForm.get('levelSelf').hasError('required')">
          请填写积分奖励比率
        </nz-form-explain>
      </nz-form-control>
      <nz-form-label [nzSpan]="4" nzRequired nzFor="red_levelSelf">自购现金奖励比率</nz-form-label>
      <nz-form-control [nzSpan]="6" [nzValidateStatus]="validateForm.controls['red_levelSelf']">
        <nz-input-number style="width: 100%;" [nzMin]="0" [nzMax]="1" [nzStep]="0.1" [nzPrecision]="2"
                         formControlName="red_levelSelf" [nzPlaceHolder]="'自购现金奖励比率'"></nz-input-number>
        <nz-form-explain
          *ngIf="validateForm.get('red_levelSelf').dirty && validateForm.get('red_levelSelf').hasError('required')">
          请填写现金奖励比率
        </nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item style="margin-top: 20px;border-top: 1px solid #d0d0d0; padding-top: 12px;">
      <nz-form-control [nzSpan]="19" [nzOffset]="6">
        <button nz-button type="button" (click)="prev()" style="margin-right: 10px;" *ngIf="!entity.id">上一步</button>
        <button nz-button type="submit" [nzType]="'primary'">保存</button>
      </nz-form-control>
    </nz-form-item>
  </form>
</nz-card>
